package cn.hznc.domain.request.schedule;

import cn.hznc.utils.factory.ExcelExportStrategy;
import com.alibaba.excel.ExcelWriter;
import com.alibaba.excel.write.metadata.WriteSheet;
import com.alibaba.excel.write.metadata.fill.FillConfig;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * @Author：Administrator
 * @Date：2024/1/17 11:36
 */
@Getter
@Setter
public class ExportUnmetToolList implements ExcelExportStrategy {

    private OrderVo orderEntity;

    private List<ExportToolDemandVo> toolList;

    @Override
    public ExcelWriter buildExcelWrite(ExcelWriter excelWriter, FillConfig fillConfig, WriteSheet writeSheet) {
        // 列表
        excelWriter.fill(this.orderEntity, fillConfig, writeSheet);

        excelWriter.fill(this.toolList, writeSheet);
        return excelWriter;
    }
}
